package Logic;
import Dao.SelectionDAO;
import Model.SelectionBean;
 
//业务逻辑层
public class SelectionLogic{    
    
    // 添加新的教练
    public boolean addSelection(SelectionBean selection){
        boolean result = false;
        try{
        	SelectionDAO selectiondao = new SelectionDAO();
        	selectiondao.insertSelection(selection);
            result = true;
        }catch (Exception e){
            e.getMessage();
            result = false;
        }
        return result;
    }  
}